package config

import "github.com/magiconair/properties"

var (
	config *properties.Properties
)

func init() {
	config = properties.MustLoadFile("conf/app.properties", properties.UTF8)
}
func GetStr(key string) string {
	return config.GetString(key, "")
}
func GetInt(key string, def int) int {
	return config.GetInt(key, def)
}
